package com.petshop.utils;

import com.petshop.pojo.Admin;
import com.petshop.pojo.Users;

public class AdminHolder {
    private static final ThreadLocal<Admin> tl = new ThreadLocal<>();

    public static Admin getAmin() {
        return tl.get();
    }

    public static void setAdmin(Admin admin) {
        tl.set(admin);
    }

    public static void removerAdmin() {
        tl.remove();
    }
}
